<?php
session_start();
//require_once("../../classes/include/utils.php");
//require_once("../../classes/include/scripts.js");
//require_once("../../classes/clss_header.php");

	//user Class started.....
class user
{
	private $_user_id;
	private $_user_name;
	private $_user_pwd;
	private $_user_email;
	private $_user_type;
	private $_last_visited;
	
	
	public function _construct()  // constructor
	{
		$this->_user_id = 0;
		$this->_user_name = "";
		$this->_user_pwd = "";
		$this->_user_email = "";
		$this->_user_type = 0;
		$this->_last_visited = "";
	}	// constructor end
	
	
	public function _set_user($usrid, $usrname, $usrpwd, $usremail, $usrtype) // constructor with para 
	{
		$this->_user_id = mysql_real_escape_string($usrid);
		$this->_user_name = mysql_real_escape_string($usrname);
		$this->_user_pwd = mysql_real_escape_string($usrpwd);
		$this->_user_email = mysql_real_escape_string($usremail);
		$this->_user_type = mysql_real_escape_string($usrtype);		 
	}	// end constructor with para
	
	public function _destruct()	// destructor
	{
		//delete this;
	}	// destructor end
	
	public function _set_usrId($_usrId) // _set_usrId
	{
		$this->_user_id = mysql_real_escape_string($_usrId);
	}	// end _set_usrId
	
	public function _set_usrName($_usrName) // _set_usrName
	{
		$this->_user_name = mysql_real_escape_string($_usrName);
	}	//  end _set_usrName
	
	public function _set_usrPwd($_usrPwd)	// _set_usrPwd
	{
		$this->_user_pwd = mysql_real_escape_string($_usrPwd);
	}	// end _set_usrPwd
	
	public function _set_usrEmail($_usrEmail)	// _set_usrEmail
	{
		$this->_user_email = mysql_real_escape_string($_usrPwd);
	}	// end _set_usrEmail
	
	public function _set_usrType($_usrType) // set_usrType
	{
		$this->_user_type = mysql_real_escape_string($_usrType);
	}	// end _set_usrType
	
	public function _get_usrId() // _get_usrId
	{
		return $this->_user_id;
	}	// end _get_usrId
	
	public function _get_usrName() // _get_usrName
	{
		return $this->_user_name;
	}	// end _get_usrName
	
	public function _get_usrPwd() // _get_usrPwd
	{
		return $this->_user_pwd;
	}
	
	public function _get_usrEmail() // _get_usrEmail
	{
		return $this->_user_email;
	}	// end _get_usrEmail
	
	public function _get_usrType() // _get_usrType
	{
		return $this->_user_type;
	}	// end _get_usrType
	
}
//--------------------------------------------------------- end of user class

//inventory class started
class inventory
{
	private $inv_id;
	private $inv_name;
	private $inv_amt; 


	public function _construct() //constructor
	{
		$this->_inv_id = 0;
		$this->_inv_name = "";
		$this->_inv_amt = 0;
	} //end of constructor

	public function _set_inv($invId, $invName, $invAmt) //constructor 			with para
	{
		$this->_inv_id = mysql_real_escape_string($invId);
		$this->_inv_name = mysql_real_escape_string($invName);
		$this->_inv_amt = mysql_real_escape_string($invAmt);
	} //end of constructor with para

	public function _set_invId($_invId) // _set_invId
{
		$this->_inv_id = mysql_real_escape_string($_invId);
	}	// end _set_invId

	public function _set_invName($_invName) // _set_invName
	{
		$this->_inv_name = mysql_real_escape_string($_invName);
	}	// end _set_invName

	public function _set_invAmt($_invAmt) // _set_invAmt
	{
		$this->_inv_amt = mysql_real_escape_string($_invAmt);
	}	// end _set_invAmt

	public function _get_invId() // _get_invId
	{
		return $this->_inv_id;
	}	// end _get_inId

	public function _get_invName() // _get_invName
	{
		return $this->_inv_name;
	}	// end _get_invName

	public function _get_invAmt() // _get_invAmt
	{
		return $this->_inv_amt;
	}	// end _get_ivnAmt
}

//end of inventory class

?>